English 中文(简体)
图像观测执行时间制作的轨道图的预防规模——安兹
原标题:Preventing scale on bitmap created in execution time for ImageView - Android

我的《图像评论》在网上讲话中作为最高标语。 该旗帜的图像是在执行时间,取决于装置的解决。 每项决议的旗帜高度总是相同。 唯一的变化是 w,根据方向变化。 但是,由于宽大的变化和高潮,我最后发现有两种不同比例的图像。 这对我来说,是缩小/升降速度的方法。

另一个问题是,每当用户轮流进行屏幕时,便会再次制作标语形象,但安乐公司似乎不更新图像,因此我有一个旗帜,没有一部分。

我认为,有适合地貌景观和海峡貌景观的真正大形象。 但是,这似乎不是一个好主意,因为安伯斯每刻都保持对图像的重新定位,使之适合图像观测的空间。

我在此不谈想法。 一个人能提出什么?

Thanks, Rafael Ramos

最佳回答

你们对这一头脑使用什么样的形象? 使用固定的子板大小图像是一种坏的观念,同样是因为你不得不处理多少决议。 如果能找到你重新尝试使用的那种背景的话,那么你就应当看一看9幅图像。 之后,仅仅确定了布局,以填补父母,并将在必要时自动予以撤销。

http://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-TOP

EDIT:很难确切地告诉你,但我建议像以下,而不是像《图像评论》一样:

<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="{whatever height you have set}"
    android:id="@+id/header_relative_layout"
    android:background="@drawable/gradient"
    >
    <ImageView
        android:id="@+id/header_imageview"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:gravity="center_vertical"
        android:layout_alignParentLeft="true"
        android:src="@drawable/header_image"
        />
    <TextView
        android:id="@+id/header_textview"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/header_text"
        android:layout_toRightOf="@id/header_imageview"
        android:layout_marginLeft="10dp"
        />
</RelativeLayout>

梯度。

<shape 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:shape="rectangle"
    >
    <gradient 
        android:startColor="#FFFF0000" 
        android:endColor="#80FF00FF"
        android:angle="270"
        />
</shape>

我实际上没有这样做,但应该相当接近。 这样,你就不必每次造影, w子将自动填满全部屏幕。

这是否有助于?

问题回答

暂无回答




相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签