小编use*_*911的帖子

增加 RecyclerView 项目的字体大小

我有一个导航栏,其中RecyclerView有不同的项目。我想改变它的字体大小。这是代码navigation_menu.xml

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/app_background"
    android:textSize="30sp"
    android:fillViewport="true">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <include layout="@layout/nav_header_main" />

        <android.support.v7.widget.RecyclerView
            android:id="@+id/recyclerView_main"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="5dp"
            android:layout_marginStart="5dp"
            android:layout_marginTop="5dp" />

    </LinearLayout>

</ScrollView>
Run Code Online (Sandbox Code Playgroud)

java android android-recyclerview

6
推荐指数
1
解决办法
5255
查看次数

C#:同时执行多个计时器

我有三个标签控件,在For Loop的帮助下,我编写了一个方法,将控件从表单顶部移动到底部.我有三个计时器,每个都反复移动一个控件,但问题是它们一个接一个地执行.

我希望时间同时执行,即所有三个标签同时从表单顶部向右移动.

注意:每次调用计时器后,我都设置了一个随机对象,可以在表单顶部随机重置位置.

c#

-1
推荐指数
1
解决办法
594
查看次数

标签 统计

android ×1

android-recyclerview ×1

c# ×1

java ×1