【发布时间】:2015-12-22 20:32:06
【问题描述】:
我正在使用slidingtablayout和slidingtabstrip,我有5个标签,但是有一个像RESTAURANT这样的大文本,它不完全可见..如果我将其他标签文本更改为大文本,它工作正常,甚至可以滚动..但不是第一种情况。我想要这个..但是标签上有上面的文字
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.example.rajdeepsingh.newlistview_module.Search">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="#ffffff"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="2"
>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:id="@+id/navbut"
android:background="@drawable/arrow"
android:layout_margin="5dp"
/>
<com.example.rajdeepsingh.newlistview_module.SlidingTabLayout1
android:id="@+id/sliding_tabs"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/roundedcorneredittext"
android:layout_margin="16dp"
android:drawableLeft="@drawable/search01"
android:drawableStart="@drawable/search01"
android:id="@+id/searchedittext"
android:hint="Brands, Restaurant, Shops "
android:textColorHint="#bdbdbd"
android:typeface="serif"
/>
</LinearLayout>
<android.support.v4.view.ViewPager
android:id="@+id/viewpager"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@android:color/white" />
</LinearLayout>
</LinearLayout>
【问题讨论】:
-
发布你的 XML 代码
-
更新修改后的代码
-
你的 item.xml 在哪里?
标签: android slidertabs