mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Probably much better fix that Lachezar spotted -- LDPI layout wasn't correctly updated by me
git-svn-id: https://zxing.googlecode.com/svn/trunk@1644 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
51a4fa443d
commit
682cc4c98c
|
@ -154,6 +154,11 @@
|
|||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView android:id="@+id/contents_text_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -163,6 +168,18 @@
|
|||
android:paddingLeft="12dip"
|
||||
android:autoLink="web"/>
|
||||
|
||||
<TextView android:id="@+id/contents_supplement_text_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/result_text"
|
||||
android:textColorLink="@color/result_text"
|
||||
android:textSize="14sp"
|
||||
android:padding="24dip"
|
||||
android:autoLink="web"
|
||||
android:clickable="true"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
@ -491,15 +491,11 @@ public final class CaptureActivity extends Activity implements SurfaceHolder.Cal
|
|||
contentsTextView.setTextSize(TypedValue.COMPLEX_UNIT_SP, scaledSize);
|
||||
|
||||
TextView supplementTextView = (TextView) findViewById(R.id.contents_supplement_text_view);
|
||||
if (supplementTextView != null) {
|
||||
supplementTextView.setText("");
|
||||
supplementTextView.setOnClickListener(null);
|
||||
if (PreferenceManager.getDefaultSharedPreferences(this).getBoolean(PreferencesActivity.KEY_SUPPLEMENTAL, true)) {
|
||||
SupplementalInfoRetriever.maybeInvokeRetrieval(supplementTextView, resultHandler.getResult(), handler, this);
|
||||
}
|
||||
} else {
|
||||
Log.w(TAG, "Unable to find supplement text view?");
|
||||
}
|
||||
|
||||
int buttonCount = resultHandler.getButtonCount();
|
||||
ViewGroup buttonView = (ViewGroup) findViewById(R.id.result_button_view);
|
||||
|
|
Loading…
Reference in a new issue