小编var*_*run的帖子

android中的高级滑动菜单

你好朋友我想在android中实现滑动菜单我喜欢IOS 7下面是在IOS中如何实现的URL。

在此处输入图片说明 https://raw2.github.com/romaonthego/RESideMenu/master/Demo.gif

要查看完整动画,请访问上面的 URL。

我想在android中实现相同的。

为了实现这一点,我的策略是采用框架布局并同时使用缩放和平移动画。

如果有人已经实现了这种类型的视图或对此有一些想法,请分享。

android android-animation android-sliding slidingmenu

5
推荐指数
1
解决办法
676
查看次数

如何为钢琴创建布局

我正在研究钢琴应用程序,我在布局创建方面遇到了一些问题.我想创建一个如下所示的布局:

在此输入图像描述

但我只能创造这个

在此输入图像描述

现在我想添加所有黑色按钮,但问题是我无法在这些按钮上方添加视图.我怎样才能做到这一点?我目前的布局代码如下,请建议我如何实现这一目标.现在我可以点击所有按钮,一旦我添加了所有按钮,那么每个按钮都应该是可点击的.

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/white"
    android:orientation="horizontal" >

    <LinearLayout
        android:id="@+id/relativeLayout2"
        android:layout_width="fill_parent"
        android:layout_height="match_parent"
        android:background="@color/white"
        android:weightSum="1.5" >

        <ImageView
            android:id="@+id/bw1"
            android:layout_width="0dip"
            android:layout_height="match_parent"
            android:layout_weight=".1"
            android:background="@drawable/blacknew" />

        <ImageView
            android:id="@+id/bw2"
            android:layout_width="0dip"
            android:layout_height="match_parent"
            android:layout_weight=".1"
            android:background="@drawable/blacknew" />

        <ImageView
            android:id="@+id/bw3"
            android:layout_width="0dip"
            android:layout_height="match_parent"
            android:layout_weight=".1"
            android:background="@drawable/blacknew" />

        <ImageView
            android:id="@+id/bw4"
            android:layout_width="0dip"
            android:layout_height="match_parent"
            android:layout_weight=".1"
            android:background="@drawable/blacknew" />

        <ImageView
            android:id="@+id/bw5"
            android:layout_width="0dip"
            android:layout_height="match_parent"
            android:layout_weight=".1"
            android:background="@drawable/blacknew" />

        <ImageView
            android:id="@+id/bw6"
            android:layout_width="0dip"
            android:layout_height="match_parent"
            android:layout_weight=".1"
            android:background="@drawable/blacknew" />

        <ImageView
            android:id="@+id/bw7"
            android:layout_width="0dip"
            android:layout_height="match_parent"
            android:layout_weight=".1"
            android:background="@drawable/blacknew" />

        <ImageView
            android:id="@+id/bw8"
            android:layout_width="0dip"
            android:layout_height="match_parent"
            android:layout_weight=".1"
            android:background="@drawable/blacknew" />

        <ImageView
            android:id="@+id/bw9"
            android:layout_width="0dip"
            android:layout_height="match_parent" …
Run Code Online (Sandbox Code Playgroud)

layout android

3
推荐指数
1
解决办法
7254
查看次数

如何在android中的文本视图中写入hindi

是否可以在android中以文本视图编写另一种语言字体,例如我创建的

TextView tv = new TextView(this);
tv.setText("HEllo Android");
Run Code Online (Sandbox Code Playgroud)

在这里,我用英语写了Hello Android,我怎么能用印地语写的呢.

我用图像工作正常

 <ImageView android:id ="@+id/header2"
              android:layout_height="wrap_content"
              android:layout_width="fill_parent"

              android:gravity="center"
              android:layout_gravity="center"
              android:paddingTop="0dip"

              android:src="@drawable/why00learn00spanish_index"
              >
   <ImageView/>
Run Code Online (Sandbox Code Playgroud)

任何帮助都会感激.

android textview android-resources

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