@@ -0,0 +1,1797 @@
+/*%0A * Copyright (C) 2014 The Android Open Source Project%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.oasisfeng.android.preference;%0A%0Aimport android.annotation.TargetApi;%0Aimport android.content.Context;%0Aimport android.preference.Preference;%0Aimport android.util.AttributeSet;%0Aimport android.view.View;%0Aimport android.widget.TextView;%0A%0Aimport static android.os.Build.VERSION_CODES.LOLLIPOP;%0A%0Apublic class WallOfTextPreference extends Preference %7B%0A%0A%09@SuppressWarnings(%22unused%22) public WallOfTextPreference(final Context context) %7B super(context); %7D%0A%09@SuppressWarnings(%22unused%22) public WallOfTextPreference(final Context context, final AttributeSet attrs) %7B super(context, attrs); %7D%0A%09@SuppressWarnings(%22unused%22) public WallOfTextPreference(final Context context, final AttributeSet attrs, final int defStyleAttr) %7B super(context, attrs, defStyleAttr); %7D%0A%09@TargetApi(LOLLIPOP) public WallOfTextPreference(final Context context, final AttributeSet attrs, final int defStyleAttr, final int defStyleRes) %7B super(context, attrs, defStyleAttr, defStyleRes); %7D%0A%0A%09@Override protected void onBindView(final View view) %7B%0A%09%09super.onBindView(view);%0A%09%09final TextView summary = (TextView) view.findViewById(android.R.id.summary);%0A%09%09summary.setMaxLines(20);%0A%09%09setSelectable(false);%0A%09%7D%0A%7D

Add WallOfTextPreference from AOSP.