Java 向上滑动面板将面板高度设置为文本视图子高度
我正在使用umano向上滑动面板库。我需要将面板的高度设置为与第二个Textview高度相同。示例一个文本视图Java 向上滑动面板将面板高度设置为文本视图子高度,java,Java,我正在使用umano向上滑动面板库。我需要将面板的高度设置为与第二个Textview高度相同。示例一个文本视图 <?xml version="1.0" encoding="utf-8"?> <com.sothree.slidinguppanel.SlidingUpPanelLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:sothree="http://schema
<?xml version="1.0" encoding="utf-8"?>
<com.sothree.slidinguppanel.SlidingUpPanelLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:sothree="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:id="@+id/testtest"
android:layout_height="match_parent"
android:layout_gravity="bottom"
android:gravity="bottom"
sothree:umanoPanelHeight="65dp"
sothree:umanoShadowHeight="4dp"
>
<TextView
android:textSize="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="main"/>
<TextView
android:textSize="20dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="second"/>
</com.sothree.slidinguppanel.SlidingUpPanelLayout>
是否有任何方法可以获取textview高度并将其发送到umano panel的heigt>?
或者我是否可以计算文本视图文本大小到dp中的高度